<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/index.js"></script>
    <script type="text/javascript" src="/static/js/pinying.js"></script>
    <script type="text/javascript" src="/static/js/encrypt.js"></script>
</head>
<body>

<button onclick="test()" value="测试">测试</button>

<script>
    function test() {
        var a = "123456";
        var i = do_sm3_encrypt(a);
        console.log("第一次加密：" + i);
        var l = "123456789";
        var t = do_sm2_encrypt(i, l);
        console.log("第二次加密：" + t);
    }

</script>

</body>
</html>